package com.visikard.application;

public class VkRegisterValidator {

	public static final boolean isValidString(String str) {
		if (str == null || str.isEmpty())
			return false;
		return true;
	}

	public static final boolean isValidEmail(String email) {
		if (email == null) {
			return false;
		}
		else {
			return android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches();
		}
	}

	public static final boolean isValidMerchantId(String merchantId) {
		// if(!isValidString(merchantId) || merchantId.length() != Constant.MERCHANT_ID_LENGTH){
		// return false;
		// }
		if (!isValidString(merchantId)) {
			return false;
		}
		return true;
	}

	public static final boolean isValidStoreId(String storeId) {
		// if(!isValidString(storeId) || storeId.length() != Constant.MERCHANT_ID_LENGTH){
		// return false;
		// }
		if (!isValidString(storeId)) {
			return false;
		}
		return true;
	}
}
